package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh活动类型附属Model;
import com.iris.live.services.data.models.Lsh活动类型附属ModelPK;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by ThinkPad on 2016/10/25.
 */
@Transactional
public interface Lsh活动类型附属repository extends JpaRepository<Lsh活动类型附属Model, Lsh活动类型附属ModelPK>, JpaSpecificationExecutor<Lsh活动类型附属Model> {

    @Query("select a from Lsh活动类型附属Model a where a.kpi编号=?1")
    List<Lsh活动类型附属Model> findByKpi编号(Integer id);
}
